package com.shangxian.giveithome.entity.report;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shangxian.giveithome.entity.community.IssueImg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 * 黑名单实体类
 */
@Data
@ApiModel("黑名单实体类")
public class BlackList {

    @ApiModelProperty("增长id")
    private Long id;

    @ApiModelProperty("举报用户id")
    private Long userId;

//    @ApiModelProperty("被举报用户id")
//    private Long reportId;

    @ApiModelProperty("被举报用户名")
    private String name;

    @ApiModelProperty("举报事由")
    @NotNull(message = "举报原因不能为空")
    private String reportContent;

    @ApiModelProperty("举报类型")
    @NotNull(message = "举报类型不能为空")
    private String type;

    @ApiModelProperty("被举报人微信号")
    private String wechat;

    @ApiModelProperty("被举报人手机号")
    private Long phone;

    @ApiModelProperty("图片组id")
    private Long imgId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("举报时间")
    private Date reportTime;

    @ApiModelProperty("举报状态：0审核中、1有异常（封禁）、2无异常")
    private Long state;

    @ApiModelProperty("图片类")
    private List<IssueImg> img;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty("其它补充内容")
    private String otherContent;
}
